<!-- #include file="../include/skin.asp" -->
<%
'****************************************************
' Joekoe CMS 1.2 Free      Power by Joekoe.com
' Email: info@asp126.com  asp126@qq.com
' Web: http://www.asp126.com , http://www.ude.com.cn
' Copyright (C) 2004 Asp126.com All Rights Reserved.
'****************************************************

dim id,url
id=trim(request.querystring("id"))
if not int_true(id) then
  call format_redirect("website.asp")
end if
sql="select top 1 url from website where hidden=1 and id="&id
set rs=joekoe_cms.exec(sql,1)
if rs.eof then
  rs.close
  call format_redirect("website.asp")
end if
url=rs(0)
rs.close
call joekoe_cms.exec("update website set counter=counter+1 where id="&id,0)

call format_redirect(url)

'****************************************************
' Joekoe CMS 1.2 Free      Power by Joekoe.com
' Email: info@asp126.com  asp126@qq.com
' Web: http://www.asp126.com , http://www.ude.com.cn
' Copyright (C) 2004 Asp126.com All Rights Reserved.
'****************************************************
%>